{literal}
<script type="text/javascript">
tinyMCE.init({
	theme : "advanced",
	mode : "none",
	plugins : "bbcode",
	width: '100%',
	theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,styleselect,removeformat,cleanup,code",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_styles : "Code=codeStyle;Quote=quoteStyle",
	entity_encoding : "raw",
	add_unload_trigger : false,
	remove_linebreaks : false,
	inline_styles : false,
	convert_fonts_to_spans : false,
	theme_advanced_resizing : false,
	content_css : "{/literal}{$templateUrl}{literal}Input/htmlEditor.css"
});

</script>
{/literal}
<textarea id="{$input->name}-id" name="{$input->name}" rows="15" cols="80" style="{$input->style}">{$input->value}</textarea>

{literal}
<script type="text/javascript">
tinyMCE.execCommand('mceToggleEditor',false,'{/literal}{$input->name}-id{literal}');
</script>
{/literal}
